package com.cooksys.film_rental.validation.constraints;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

import com.cooksys.film_rental.validation.PasswordsMatchValidator;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = { PasswordsMatchValidator.class })
public @interface PasswordsMatch {

	String message() default "{com.cooksys.film_rental.validation.PasswordsMatch.message}";

	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default {};

}
